package lihua.robot.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lihua.robot.pojo.ExpiredOrders;
import lihua.robot.service.ExpiredOrdersService;
import lihua.robot.mapper.ExpiredOrdersMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author huanghan
* @description 针对表【expired_orders】的数据库操作Service实现
* @createDate 2024-04-03 14:07:42
*/
@Service
public class ExpiredOrdersServiceImpl extends ServiceImpl<ExpiredOrdersMapper, ExpiredOrders>
    implements ExpiredOrdersService{

    @Override
    public String detectOrders(){
        List<ExpiredOrders> list = this.baseMapper.selectList(null);
        if(!list.isEmpty()){
            return list.get(0).getDesvn();
        }
        return null;
    }
}




